﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSelectCalendar_Click(object sender, EventArgs e)
    {
        string[] Week = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
        StringBuilder sbDate = new StringBuilder();
        sbDate.Append("您选择的日期是:");
        sbDate.Append(Calendar1.SelectedDate.Year + "年");
        sbDate.Append(Calendar1.SelectedDate.Month + "月");
        sbDate.Append(Calendar1.SelectedDate.Day + "日");
        sbDate.Append(Week[(int)Calendar1.SelectedDate.DayOfWeek]);
        lblDate.Text = sbDate.ToString();
    }
    protected void btnSelectCalendarRefresh_Click(object sender, EventArgs e)
    {

    }
}